package com.itheima.service.store.impl;

import com.itheima.dao.store.OrderToTravellerDao;
import com.itheima.domain.store.OrderToTraveller;
import com.itheima.domain.store.Traveller;
import com.itheima.factory.DaoInstanceFactory;
import com.itheima.service.store.OrderToTravellerService;

import java.util.List;

public class OrderToTravellerServiceImpl implements OrderToTravellerService {
    @Override
    public List<Traveller> findById(String id) {
        OrderToTravellerDao orderToTravellerDao = DaoInstanceFactory.getMapper(OrderToTravellerDao.class);
        return orderToTravellerDao.getTravellerById(id);
    }
}
